<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/taglib/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/taglib/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglib/struts-logic.tld" prefix="logic"%>

<div id="content">
	<h3>
		<bean:message key="student.start.links.literature" />
	</h3>
	<html:form action="/student/literature">
		<table class="custom_table">
			<tr>
				<td><bean:message key="common.messages.discipline" /> :</td>
				<td><html:select name="literatureForm" property="disciplineId">
						<html:option value="0">
							<bean:message key="common.messages.all" />
						</html:option>
						<html:optionsCollection name="literatureForm"
							property="disciplineList" label="label" value="value" />
					</html:select></td>
				<td><html:submit property="method" value="list" /></td>
			</tr>
		</table>
	</html:form>
	<table class="custom_table">
		<logic:iterate name="literatureForm" property="literatures"
			id="literature" indexId="index">
			<tr>
				<td style="width: 150px; max-width: 150px;"><bean:write
						name="literature" property="title" /></td>
				<td style="width: 150px; max-width: 150px;"><html:link
						action="/student/literature.do?method=download" indexed="true">
						<bean:write name="literature" property="literature.name" />
					</html:link>
				</td>
			</tr>
		</logic:iterate>
	</table>
</div>